import unittest
from HTMLTestRunner import HTMLTestRunner
import time
from scripts.test01_login import TestLoginAPI

suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestLoginAPI))

report = './report/report-{}.html'.format(time.strftime('%Y%m%d--%H%M%S'))
with open(report, 'wb') as f:
    runner = HTMLTestRunner(f, title='接口测试报告')
    runner.run(suite)
